import PageContainer from "@/components/PageContainer"
import { observer } from 'mobx-react'
import { GStyleSheet } from "@/utils/DarkMode"
import { View } from "@tarojs/components"
import Taro, { useDidShow } from "@tarojs/taro"
import { useUseStateStore } from '@/hooks';
import { checkIsLogin, goToLoginPage } from '@/utils/loginStatus';

const dstyle = GStyleSheet.create({
  container: {
    display: 'flex',
    width: '100%',
    height: '100%',
  }
})

const Test = () => {
  const styles = dstyle.useDynamicStyle();
  const { userInfo } = useUseStateStore();

  useDidShow(() => {
    console.log('useDidShow', userInfo);
  })

  return (
    <PageContainer title='test'>
      <View style={styles.container} onClick={goToLoginPage}>123</View>
    </PageContainer>
  )
 }

export default observer(Test)
